package com.example.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.entity.Caizhaiyuyue;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

@Mapper
public interface CaizhaiyuyueDao extends BaseMapper<Caizhaiyuyue> {

@Select("select * from caizhaiyuyue")
List<Map<String, Object>> daochuexcel();

@Select("select * from caizhaiyuyue where yonghuming=#{zhujian}")
Caizhaiyuyue getByzhujian(String zhujian);

//youxxianxci

@Select("SELECT distinct(zhongzhiwu) as aa,count(id) as bb FROM caizhaiyuyue group by zhongzhiwu")List<Map<String, Object>> caizhaiyuyue_tj_zhongzhiwu();//tonxgji1

}
